/**
 * @Project TMHSC
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2011 TMH. All rights reserved
 * @Createdate Feb 25, 2011
 * @Createtime 1:33:50 PM
 */

package com.tmh.study.aS3DP.mcv.minimalist
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;

	public class Model extends EventDispatcher implements IModel
	{
		private var _lastKeyPressed:uint = 0;

		public function Model()
		{
			super();
		}

		public function setKey(key:uint):void
		{
			this._lastKeyPressed = key;

			dispatchEvent(new Event(Event.CHANGE));
		}

		public function getKey():uint
		{
			return _lastKeyPressed;
		}
	}
}